const initPlatform = (app) => {
  let appconfig = {}
  const modules = import.meta.glob('../config/global/*.js', { eager: true })
  for (const key in modules) {
    if (Object.hasOwnProperty.call(modules, key)) {
      const element = modules[key];
      if (key.includes(process.env.NODE_ENV)) {
        appconfig = element.default
      }
    }
  }
  app.config.globalProperties.$global = {
    ...appconfig,
    oss: "",
  };
}

export {
  initPlatform
}